<div class="widget">
    <div class="widgetTitle">
        <h3><?= $title;?> </h3>
    </div><!-- /.widgetTitle -->

    <div class="block"> List of all Messages posted by visitor..</div>

    <?php foreach($comments as $comments):?>
    <div class="widgetContent bottom-border listing">
        <div class="row nomargin">
            <div class="col-md-9 col-sm-9 col-xs-9">
                <h3><a target="_blank" href="<?= URL::base();?>/<?= Commoncall::postLink($comments->post_id);?>"> <i class="fa fa-envelope text-yellow"></i> <?= Post::find($comments->post_id)->title;?></a> <small class="badge btn-info"> Comment</small></h3>
                <blockquote>
                    <p class="smallText"><i><?= $comments->comment;?></i></p>
                </blockquote>
            </div>

            <div class="col-md-3 col-sm-3 col-xs-3 smallText">
                <p class="thin">By, <?= $comments->name;?></p>
                <p class="thin"><?= $comments->updated_at;?></p>
                <a href="delete/<?= $comments->id;?>"><i class="fa fa-close"></i> Delete</a>
            </div>
        </div>

    </div>
    <?php endforeach;?>
</div>

